#ifndef _APP_MEMORY_H
#define _APP_MEMORY_H
#include "cat1_1.h"
#include "cat1_2.h"
#include "cat1_app.h"
#include "ring_queue.h"
#include "key.h"
#include "rs485_1.h"
#include "rs485_2.h"
#include "wifi.h"
#include "crc.h"
#include "app_sysconfig.h"
#include "rtc.h"
//#include "w25qxx.h" 
//#include "sdio_sdcard.h"
#include "adc.h"
#include "factory.h"
extern  RingQueue_t RingQueue_t_data;
// 系统存储 地址
#define system_info_addr   FLASH_SIZE-4096     //SYS_CONFIG 
#define system_info_addr1  FLASH_SIZE-2048     //record time
#define system_info_addr2  FlASH_SIZE-8192     //ERR_LOG
#define FLASH_SIZE         16*1024*1024
extern unsigned int lora_queue;
extern unsigned short lora_buf[24];
void Get_num_char(unsigned short num,unsigned char channle);
//lora  id 字符 转 INT 型数据
void Get_num_lora(unsigned char *buf,unsigned char channle);
void Get_num_sys_time(unsigned char *buf);

void Read_system_info(void);

void Write_system_info(void);

void Print_sys(void);





















#endif
